package com.ar.bean;

public class Quiz {
	
	private int id;
	private String category;
	private int num_answer;//size of answers[]
	private String question;
	private String type;
	private String[] answers;
	private int correctanswer;//index of answers[]
	private String imageUrl;
	private String imageDescription;
	private float point;

	public Quiz(int id, String category, int num_answer,
			String question, String type, String[] answers, int correctanswer,
			String imageUrl, String imageDescription, float point) {
		this.id = id;
		this.category = category;
		this.num_answer = num_answer;
		this.question = question;
		this.type = type;
		this.answers = answers;
		this.correctanswer = correctanswer;
		this.imageUrl = imageUrl;
		this.setImageDescription(imageDescription);
		this.point = point;
	}
	
	public Quiz(int id, String category, int num_answer,
			String question, String type, String[] answers,
			String imageUrl, String imageDescription, float point) {
		this.id = id;
		this.category = category;
		this.num_answer = num_answer;
		this.question = question;
		this.type = type;
		this.answers = answers;
		this.imageUrl = imageUrl;
		this.setImageDescription(imageDescription);
		this.point = point;
	}

	public Quiz(int num_answer){
		this.answers = new String[num_answer];
	}
	
	public Quiz(){}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getNum_answer() {
		return num_answer;
	}

	public void setNum_answer(int num_answer) {
		this.num_answer = num_answer;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String[] getAnswers() {
		return answers;
	}

	public void setAnswers(String[] answers) {
		this.answers = answers;
	}

	public int getCorrectAnswer() {
		return correctanswer;
	}

	public void setCorrectAnswer(int correctanswer) {
		this.correctanswer = correctanswer;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public float getPoint() {
		return point;
	}

	public void setPoint(float point) {
		this.point = point;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getImageDescription() {
		return imageDescription;
	}

	public void setImageDescription(String imageDescription) {
		this.imageDescription = imageDescription;
	};
	
	
	
}
